<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.pro.bean.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>查看用户信息</title>
    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/bootstrap.css">
	<script type="text/javascript" src="<%=basePath%>js/bootstrap.js"></script>


  </head>
  <%
		List list=(List)session.getAttribute("list");
		Iterator it=list.iterator(); 
		System.out.println(list.size());
		%>
  <body>
  <SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var start=new Date();
	start=Date.parse(start)/1000;
	var counts=10;
	function CountDown(){
		var now=new Date();
		now=Date.parse(now)/1000;
		var x=parseInt(counts-(now-start),10);
		if(document.form1){document.form1.clock.value = x;}
		if(x>0){
			timerID=setTimeout("CountDown()", 100)
		}else{
			location.href="../gxr/admin_super_user_view.jsp"
		}
	}
//  End -->
</script>
<!--<SCRIPT LANGUAGE="JavaScript">

window.setTimeout('CountDown()',100);

</script>
<FORM NAME="form1">
<INPUT TYPE="text" NAME="clock" SIZE="2" VALUE="10"> 
秒后自动跳转网页
</FORM>

  
    --><div style="width:400px;margin:auto;overflow:auto;float:middle" >
    	
    		<form name="searchform" action="<%=basePath%>servlet/EditUserServlet" method="post" >
    		<table width="200px" border="0" class="table table-bordered table-hover">
    			<caption><h3>用户信息</h3></caption>
    			<%
    			//String userId=(String)session.getAttribute("userId");
    			int userid=Integer.parseInt((String)session.getAttribute("userid"));
    			String username	=(String)session.getAttribute("username");
    			System.out.println(username);
    			String password	=(String)session.getAttribute("password");
    			String company	=(String)session.getAttribute("company");
    			String email	=(String)session.getAttribute("email");
    			System.out.println(email);
    			 %>
    			 
    			 <tr>
    				<td class="success" width="30%">用户ID</td>
    				<td>	<%=userid %>			</td>
    			</tr>
    			<tr>
    				<td class="success" width="30%">用户姓名</td>
    				<td>	<%=username %>			</td>
    			</tr>
    			
    			<tr>
    				<td class="success">邮件地址</td>
    				<td>	<%=email %>			</td>
    			</tr>
    			<tr>
    				<td class="success">用户类型</td>
    				<td>	普通用户			</td>
    			</tr>
    			<tr>
    			<td class="success">所属部门</td>
    				<td>	<%while(it.hasNext()){
						Unit unit=(Unit)it.next();	if(unit.getUnitid()==Integer.parseInt(company)){ %>	<%=unit.getUnitname() %>	<%} }%>	</td>
    			</tr>
    			<tr>
    				<td class="success">部门编号</td>
    				<td>	<%=company%>			</td>
    			</tr>
    			
    		</table>
    		
    		
    		<button type="submit" style="margin-right:20px;float:right" class="btn btn-primary" onclick="submit">修改</button>
    		</form>
    	
    </div>
  </body>
</html>
